package com.example.springdata.dao.entity;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface BookRepository extends JpaRepository<Book,Long> {
    @Query("select c from Book c where c.name  like :name ")
    Page<Book> findProduct(@Param("name") String name, Pageable pageable);
}
